Skip to content

chore(ci): add python 3.15 to the test matrices - #1918

Merged
spydon merged 1 commit into
mainfrom
chore/ci-python-3.15
Nov 3, 2026
Merged

spydon merged 1 commit into
mainfrom
chore/ci-python-3.15

Conversation

@spydon

@spydon spydon commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Follows #1915.

Summary

  • Add Python 3.15 to the ci.yml test matrix and the FastAPI e2e matrix.
  • Bump the uv pinned in CI from 0.8.2 to 0.13.3. uv 0.8.2 predates Python 3.15 and cannot install it.
  • Upgrade the locked packages that had no 3.15 wheels: pydantic 2.14.2 and pydantic-core 2.50.2 (pydantic-core 2.41 cannot build for 3.15 because its PyO3 stops at 3.14), pyiceberg 0.12.0, pyroaring, markupsafe, mmh3 and cffi.
  • pydantic 2.14 no longer lets mypy infer the type of a module-level TypeAdapter, so annotate the five that need it in auth and storage, using the Name: TypeAdapter[T] = TypeAdapter(T) pattern already used elsewhere.
  • Update AGENTS.md.

pyiceberg 0.12 moves pyiceberg-core out of the pyarrow extra into its own extra. storage only uses PyArrowFileIO, and the storage tests pass.

Testing

  • make mypy passes on Python 3.11 and 3.15.
  • On Python 3.15 locally: functions, supabase, postgrest, storage and auth pass. The full infrastructure-backed suites are left to CI.

Test Python 3.15 in the CI matrix and the FastAPI e2e matrix.

uv 0.8.2 predates Python 3.15 and cannot install it, so bump the uv pinned in CI to 0.13.3.

Several locked packages had no 3.15 wheels and pydantic-core 2.41 cannot be built for 3.15, so upgrade pydantic, pydantic-core, pyiceberg, pyroaring, markupsafe, mmh3 and cffi. pydantic 2.14 no longer lets mypy infer the type of a module-level TypeAdapter, so annotate the five that need it.
@spydon
spydon requested a review from o-santi as a code owner November 3, 2026 10:54
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between f1392d4 and bb8f76d.

Files ignored due to path filters: 1
  • uv.lock is excluded by !**/*.lock
Files selected for processing: 5
  • .github/workflows/ci.yml
  • .github/workflows/e2e-fastapi.yml
  • AGENTS.md
  • src/auth/src/supabase_auth/helpers.py
  • src/storage/src/storage3/types.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@spydon
spydon merged commit 42982d9 into main Nov 3, 2026
44 checks passed
@spydon
spydon deleted the chore/ci-python-3.15 branch November 3, 2026 10:58
@spydon spydon mentioned this pull request Nov 4, 2026
2 of 3 tasks
spydon added a commit that referenced this pull request Nov 4, 2026
## Summary

Python 3.15 was added to the test matrix on the old `main` in #1918, but
28ff771 ("make v3 the main branch") recorded old `main` as merged
without taking its changes, so v3 never got it. `v2` still tests 3.15.
This ports #1918 to v3.

- Add `3.15` to `PYTHON_VERSIONS` in `.github/scripts/ci_matrix.py`.
- Upgrade the locked packages that cannot install on 3.15, the same set
as #1918: pydantic 2.14.2 and pydantic-core 2.50.2 (pydantic-core 2.41
cannot build for 3.15), pyiceberg 0.12.0, pyroaring 1.2.0, markupsafe
3.0.4, mmh3 5.3.1 and cffi 2.1.1. uv also moved typing-extensions and
typing-inspection forward, and pyiceberg 0.12 swaps `sortedcontainers`
for `zstandard`.
- Add the `Programming Language :: Python :: 3.15` classifier to every
package.
- Update `AGENTS.md`.

#1918 also annotated five module-level `TypeAdapter`s because pydantic
2.14 broke mypy's inference. v3 type checks with pyrefly, which reports
no errors without them, so they are not ported.

## Test plan

- [x] pyrefly reports no errors in any package
- [x] On Python 3.15.1 locally: functions 107, supabase 39, realtime 43,
storage 109, auth 213 and postgrest 420 passed
- [ ] CI passes on 3.11 to 3.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant